<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<% 
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
   
     <!-- 师资队伍 -->
     <div class="span12"  id="body-content">
	    <div class="panel "> 
             <div class="si panel-heading  word tou" >师资队伍</div>
<c:forEach items="${departments }" var="department" varStatus="status1">
     <div style="padding:20px; font-size:28px;">
                <ul class="nav nav-pills"><li class="active" >
                 <a href='<%=basePath %>academygk/zdetail/${department.dId}' style="width:400px; text-align:center">
                 ${department.dName}
                 </a>
                </li></ul>
      </div>
     <c:set var="length" value="${fn:length(teachers[status1.count-1] ) }" ></c:set>
            <div style="padding:20px;">
                    <table class='table table-bordered' style="background-color:#FAFAFA   ;">
                       <c:forEach begin="1" end="${length }" step="8" varStatus="status">
                           <tr class="row-fluid">
                            <c:forEach items="${teachers[status1.count-1] }" var="steacher111" begin="${(status.count-1)*8 }" end="${(status.count)*8-1 }">        
                               <td>
                                 <a href='<%=basePath %>teacherdw/detail/${steacher111.id }'> ${steacher111.name }</a>
                               </td>
                          </c:forEach>
                      </tr>
                   </c:forEach>
                    </table>
                </div>
        
    </c:forEach>
                
      
             
        </div>    
    </div><!-- end of 师资队伍 -->
 